<template>
	<custom-nav-bar title="分类"></custom-nav-bar>
	<view class="classLayout jbBG">
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		getClassifyApi
	} from '@/api/api.js'
	/*  */
	const classifyList = ref([]);
	const getClassify = async () => {
		let res = await getClassifyApi({
			pageSize:20
		});
		console.log("精选", res);
		classifyList.value = res.data;
	}
	getClassify();
</script>

<style lang="scss" scoped>
	.classLayout {
		// height: 100vh;
		.classify {
			padding: 50rpx 30rpx;
			display: grid;
			gap: 15rpx;
			grid-template-columns: repeat(3, 1fr);
		}
	}
</style>